package com.smfx.yxt.model;

import java.io.Serializable;
import java.util.List;

import com.smfx.yxt.common.Const;
import com.smfx.yxt.view.TermView;
import com.smfx.yxt.wechat.utils.WechatGlobalMap;

public class StudentOrganize implements Serializable{

	private static final long serialVersionUID = -3960207983692899680L;

	private Integer grade;
	
	private Integer clazz;
	
	private Integer studentCount;
	
	private List<StudentOrganize> subList;
	
	private boolean isHasChild;
	
	private String gradeText;
	
	public Integer getGrade() {
		return grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	public Integer getClazz() {
		return clazz;
	}

	public void setClazz(Integer clazz) {
		this.clazz = clazz;
	}

	public Integer getStudentCount() {
		return studentCount;
	}

	public void setStudentCount(Integer studentCount) {
		this.studentCount = studentCount;
	}
	
	public List<StudentOrganize> getSubList() {
		return subList;
	}

	public void setSubList(List<StudentOrganize> subList) {
		this.subList = subList;
	}

	public boolean isHasChild() {
		return isHasChild;
	}

	public void setHasChild(boolean isHasChild) {
		this.isHasChild = isHasChild;
	}

	public void setGradeText(String gradeText) {
		this.gradeText = gradeText;
	}

	public String getGradeText() {
		TermView view = (TermView) WechatGlobalMap.get(Const.CACHE_TERM).getValue();
		return view.getGradeName(grade);
	}
	
}
